package pattern.decorator.extend;

public class Test {
    public static void main(String[] args) {
        FriedRice friedRice = new FriedRice();
        System.out.println(friedRice.getDesc() + friedRice.getPrice() + "元");
        FriedRiceAddEgg friedRiceAddEgg = new FriedRiceAddEgg();
        System.out.println(friedRiceAddEgg.getDesc() + friedRiceAddEgg.getPrice() + "元");
        FriedRiceAddEggAddHam friedRiceAddEggAddHam = new FriedRiceAddEggAddHam();
        System.out.println(friedRiceAddEggAddHam.getDesc() + friedRiceAddEggAddHam.getPrice() + "元");
    }
}
